package com.edu.zut.service.Impl;

import com.edu.zut.entity.UserRole;
import com.edu.zut.mapper.UserRoleMapper;
import com.edu.zut.service.UserRoleService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author 许文科
 * @since 2023-01-12
 */
@Service
public class UserRoleServiceImpl extends ServiceImpl<UserRoleMapper, UserRole> implements UserRoleService {

    @Resource
    private UserRoleMapper userRoleMapper;

    @Override
    public int insertOne(Long userId) {
        return userRoleMapper.insertOne(userId);
    }
}
